CLEANFILES = *~
DISTCLEANFILES = *~

CLX_HOME ?= @prefix@
CLX_HOME_INC = $(CLX_HOME)/include
CLX_HOME_LIB = $(CLX_HOME)/lib

INCLUDES = -I../src/ms2sim -I../src/ms2lstat -I$(CLX_HOME_INC)

noinst_LTLIBRARIES = lru.la mru.la ic.la icc.la vic.la lef.la lef2.la \
		lpm_netshow41.la lpm_dss.la lpm_ms2wgen.la

lru_la_SOURCES = lru.c
lru_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

mru_la_SOURCES = mru.c
mru_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

ic_la_SOURCES = ic.c
ic_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

icc_la_SOURCES = ic.c
icc_la_CFLAGS = -DCOLLECT_CBLK
icc_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

vic_la_SOURCES = vic.c
vic_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

lef_la_SOURCES = lef.c
lef_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

lef2_la_SOURCES = lef2.c
lef2_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

lpm_netshow41_la_SOURCES = lpm_netshow41.c
lpm_netshow41_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

lpm_dss_la_SOURCES = lpm_dss.c
lpm_dss_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version

lpm_ms2wgen_la_SOURCES = lpm_ms2wgen.c
lpm_ms2wgen_la_LDFLAGS = -rpath $(CLX_HOME_LIB) -module -avoid-version